import request from '@/utils/request'

export function getList(params) {
  return request({
    url: process.env.VUE_APP_BASE_URL+'/admin/Role/list',
    method: 'get',
    params,
  })
}

export function doEdit(data) {
  return request({
    url: process.env.VUE_APP_BASE_URL+'/admin/Role/save',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: process.env.VUE_APP_BASE_URL+'/admin/Role/del',
    method: 'post',
    data,
  })
}

export function fetchModuleList(){
  return request({
    url:process.env.VUE_APP_BASE_URL+'/admin/module/list',
    method:'get',
  })
}

